﻿#region 命名空间

using System;
using System.Collections.Generic;
using Sharp.Domain.PlatformBoundedContext.PermissionModule.Aggregates;
using Sharp.Domain.Repositories;
using Sharp.Domain.Repository.EF;

#endregion

namespace Sharp.Domain.PlatformBoundedContext.UserModule.Aggregates
{
    /// <summary>
    ///     表示继承于该接口的类型是作用在“用户”聚合根上的仓储类型。
    /// </summary>
    public partial interface IUserGroupRepository : IRepository<UserGroup>
    {
        /// <summary>
        ///     获取用户组的权限
        /// </summary>
        /// <param name="groupId"></param>
        /// <returns></returns>
        IEnumerable<Permission> GetPermissionByGroupId(Guid? groupId);
    }
}